//
//  WordView.m
//  WordTutor
//
//  Created by lyh on 15/11/18.
//  Copyright © 2015年 lyh. All rights reserved.
//

#import "MiddleView.h"

@implementation MiddleView

-(instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
//        self.backgroundColor = [UIColor clearColor];///没用, 以后删除
        [self createViews];
    }
    return self;
}

- (void)createViews{
    CGFloat offsetY=self.frame.size.height-164.0f;
    
    UIImageView *upperImage=[[UIImageView alloc] initWithFrame:CGRectMake(21, 49+offsetY, 6, 14)];
    upperImage.image=[UIImage imageNamed:@"Info_high"];
    [self addSubview:upperImage];
    
    UIImageView *lowerImage=[[UIImageView alloc] initWithFrame:CGRectMake(91, 49+offsetY, 6, 14)];
    lowerImage.image=[UIImage imageNamed:@"Info_low"];
    [self addSubview:lowerImage];
}


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
//- (void)drawRect:(CGRect)rect  ///没用, 以后删除
//{
//    // Drawing code
//    NSString *str = @"drawInRect";
//    [str drawInRect:CGRectMake((self.frame.size.width - 200) / 2.f, 20, 200, 35) withAttributes:@{NSFontAttributeName: [UIFont systemFontOfSize:15], NSForegroundColorAttributeName: [UIColor whiteColor]}];
//}


@end
